import os

from CodernityDB import database

import settings
import util


def GetDb():
  db = database.Database(util.GetPath(settings.DATABASE_NAME))
  if not db.exists():
    db.create()
  return db
